package com.zjfgz.lib_kt_com.base

import android.app.Application
import com.umeng.commonsdk.UMConfigure
import io.paperdb.Paper

abstract class BaseApp : Application() {

    companion object{
        lateinit var instance: BaseApp
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        Paper.init(this)
        UMConfigure.init(this, UMConfigure.DEVICE_TYPE_PHONE, "")
        UMConfigure.setLogEnabled(true)
    }

    abstract fun getAppName() : String
    abstract fun getCompanyName() : String
    abstract fun getAppVersion() : String
    abstract fun getAppLogo() : Int
}